let _this = null

function options(vm) {
  _this = vm
  return [
    [
      {
        title: '活动名称',
        key: 'acName',
        col: 12,
        text: { tooltip: false }
      },
      {
        title: '活动标题',
        key: 'titleTag',
        col: 12,
        text: { tooltip: false }
      }
    ],
    [
      {
        title: '活动时间',
        col: 12,
        text: { tooltip: true },
        data: {
          from: (info) => {
            return `${info.startDate}-${info.endDate}`
          }
        }
      },
      {
        title: '活动浏览量(PV)',
        key: 'viewCount',
        col: 12,
        text: { tooltip: true },
        data: {
          from: (info) => {
            return `${info.viewCount}次（客户打开活动页面的次数）`
          }
        }
      }
    ],
    [
      {
        title: '访客数(UV)',
        key: 'totalCustomer',
        col: 12,
        text: { tooltip: true },
        data: {
          from: (info) => {
            return `${info.totalCustomer}人（打开活动页面的客户数量，包含非授权用户数）`
          }
        }
      },
      {
        title: '授权人数',
        key: 'authCustomer',
        col: 12,
        text: { tooltip: true },
        data: {
          from: (info) => {
            return `${info.authCustomer}人（授权信息客户数，去重统计）`
          }
        }
      }
    ],
    [
      {
        title: '分享数',
        key: 'shareNum',
        col: 12,
        text: { tooltip: true },
        data: {
          from: (info) => {
            return `${info.shareNum}次（分享次数，不去重统计）`
          }
        }
      },
      {
        title: '累计中奖数',
        key: 'prizes',
        col: 12,
        text: { tooltip: false },
        data: {
          from: (info) => {
            return `${info.prizes}次`
          }
        }
      }
    ],
    [
      {
        title: '获取新线索数',
        key: 'firstPushClueCount',
        col: 12,
        text: { tooltip: true },
        data: {
          from: (info) => {
            return `${info.firstPushClueCount}组（通过活动首次获得线索的数量）`
          }
        }
      },
      {
        title: '线索转到访',
        key: 'visitClueCount',
        col: 12,
        text: { tooltip: false },
        data: {
          from: (info) => {
            return `${info.visitClueCount}组（获取的新线索转到访的数量）`
          }
        }
      }
    ],

    [
      {
        title: '今日中奖数',
        key: 'todayPrizes',
        col: 12,
        text: { tooltip: false },
        data: {
          from: (info) => {
            return `${info.todayPrizes}次`
          }
        }
      },
      {
        title: '剩余奖品数',
        key: 'remainingPrize',
        col: 12,
        text: { tooltip: false },
        data: {
          from: (info) => {
            return `${info.remainingPrize}个`
          }
        }
      }
    ]
  ]
}

export default {
  options
}
